﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utility
{
    /// <summary>
    /// 参数
    /// </summary>
    public class Argument
    {
        /// <summary>
        /// 参数类型
        /// </summary>
        public ArgumentType Type { get; set; }
        /// <summary>
        /// 数值型参数的值
        /// </summary>
        public double DoubleValue { get; set; }
        /// <summary>
        /// 变量型参数的值
        /// </summary>
        public Variable VariableValue { get; set; }

        /// <summary>
        /// 数值型初始化
        /// </summary>
        public Argument(double value)
        {
            Type = ArgumentType.Double;
            DoubleValue = value;
        }

        /// <summary>
        /// 变量型初始化
        /// </summary>
        public Argument(Variable value)
        {
            Type = ArgumentType.Variable;
            VariableValue = value;
        }
    }
}
